package com.gxa.medical.common;
//自定义异常，表示业务中出现的问题
public class BizException extends Exception{
//public BizException(String msg){
//    super(msg);
//}

    private Integer code;
    public Integer getCode() {
        return code;
    }

    //传递枚举对象
    public BizException(ErrorCode errorCode){
        super(errorCode.getMsg());
        code=errorCode.getCode();
    }


}
